package com.song.shop.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class QuartzTest2 {

	@Scheduled(cron = "0 34 11 * * * ")
	public void test() {
		System.out.println("定时任务开始打印----"+new Date()+Thread.currentThread().getName());
	}

	@Scheduled(cron = "0 10 18 4 7 ? 2019 ")
	public void test2() {
		System.out.println("定时任务开始打印222----"+new Date()+Thread.currentThread().getName());
	}
}
